package com.njym.java.security.app.biz;

import com.njym.java.security.app.entity.FamilyRelationshipVo;
import com.njym.java.security.app.entity.FamilyType;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import com.njym.java.security.app.entity.FamilyRelationship;
import com.njym.java.security.app.mapper.FamilyRelationshipMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-18 17:42:40
 */
@Service
public class FamilyRelationshipBiz extends BaseBiz<FamilyRelationshipMapper,FamilyRelationship> {

    @Resource
    FamilyRelationshipMapper familyRelationshipMapper;

    public List<FamilyRelationshipVo> query( Integer familyTypeId){
        return mapper.query(familyTypeId);
    }


    public List<FamilyType> getFamilyName(Integer userId){
        return familyRelationshipMapper.getFamilyName(userId);
    }
}